<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>showcart.jsp</title>
</head>
<body>
<center>
<h1>JLC Bookstore</h1>
<h3>Books Selected</h3>
<table>
<%
Object obj=request.getAttribute("CART");
List<String> cart;
if(obj!=null)
{
	cart=(List<String>)obj;
	int c=1;
	for(String bn:cart)
	{
		%>
		<tr>
		<td><%= c++ %></td>
		<td><%= bn %></td>
		<td>
		<form action="remove.jlc">
		<input type="hidden" name="bname" value="<%= bn %>"/>
		<input type="submit" value="Remove From Cart"/>
		</form>
		</td>
		</tr>
		<% 
	}
}
%>
</table>
<h1><a href="showbooks.jsp">Continue Shopping</a></h1>
<h1><a href="placeorder.jsp">Place Order</a></h1>
</center>

</body>
</html>